# -*- coding: utf-8 -*-

from sqlalchemy import event
from py_engine import engine
import logging

logger = logging.getLogger(__name__)


@event.listens_for(engine, "before_execute")
def before_execute(conn, clauseelement, multiparams, params):
    logger.info(str(clauseelement.compile(dialect=conn.dialect)))
